<template>
    <div class="main">
        <div class="title">用户管理</div>
         <el-divider></el-divider>
        <el-table :data="userList" style="width: 100%">
            <el-table-column prop="update_at" label="日期" width="180">
            </el-table-column>
             <el-table-column prop="email" label="邮箱" width="180">
            </el-table-column>
             <el-table-column prop="pwd" label="密码（md5加密后）" width="180">
            </el-table-column>
            <el-table-column prop="name" label="姓名" width="180">
            </el-table-column>
            <el-table-column prop="sex" label="性别" width="180">
            </el-table-column>
            <el-table-column prop="major" label="专业" width="180">
            </el-table-column>
            <el-table-column prop="score" label="测评分数">
            </el-table-column>
        </el-table>
    </div>
</template>

<script>
import {AdminUserQuery} from './../../../api/admin'

export default {
    name: 'UserAdmin',
    data:function(){
        return {
            userList:[]
        }   
    },
    created: function(){
        AdminUserQuery({})
        .then(res=>{
            if(res.rescode==200){
                this.userList = res.userlist;
            }
        })
    },
    methods: {
        
    }
}
</script>

<style lang="less" scoped>
.title {
    font-size: 1.4em;
    font-weight: bold;
}
</style>